<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\hotel\controller;

use app\admin\model\RouteModel;
use cmf\controller\AdminBaseController;

use app\hotel\model\HotelSystermModel;
use think\Db;


class HotelSystermController extends AdminBaseController
{

    /**
     *   基本信息
     */
    public function index()
    {
           $HotelSysterm = new HotelSystermModel();
           $systerminfo            = $HotelSysterm->where('id', '1')->find();
            $this->assign('systerminfo', $systerminfo);
            return $this->fetch();
    }
    /**
     * 添加房型列表逻辑
     */
    public function addPost()
    {
        $HotelSysterm = new HotelSystermModel();
        $intId     = $this->request->param("id");
        $data = $this->request->param();
        $HotelSysterm->isUpdate(true)->save( $data, ["id" => $intId]);
        $this->success('保存成功');



    }

}
